<template>
  <div class="wrap">
    <div class="wrap-title" v-show="title">
      <span>{{ title }}</span>
    </div>
    <div class="wrap-body">
      <slot></slot>
      <div class="wrap-line" v-show="line"></div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ConfigWrap",
  props: ["title", "line"],
};
</script>

<style lang="scss" scoped>
.wrap {
  .wrap-title {
    padding: 10px 12px;
    background: #e8f0fb40;
    font-size: 14px;
    color: #323233;
    span {
      &::before {
        content: ".";
        width: 3px;
        height: 10px;
        margin-right: 8px;
        background: #155bd4;
      }
    }
  }
  .wrap-body {
    padding: 20px 20px 10px 20px; /*no*/
    .wrap-line {
      margin-top: 30px;
      height: 1px;
      background: #ebedf0;
    }
  }
}
</style>
